<template>
  <view class="now_price_wraper">
    <img src="../static/icon/beijing.jpg" />
    <view class="time">2023-06-16</view>
    <view class="main_wraper">
      <view class="main">
        <view class="main_title"> 北京市加油站 </view>
        <view class="main_list">
          <view class="list_nav">
            <view class="val">油品</view>
            <view class="name">油机价</view>
          </view>
          <view class="list_nav_container" v-for="item in oilList" :key="item.id">
            <view class="val">{{ item.name }}</view>
            <view class="name">{{ item.price }}</view>
          </view>
        </view>
      </view>
    </view>
    <view class="bottom">
      <view class="address">地址：坚实还是客家豆腐撒放假了凯撒和发了发几款大件</view>
      <view class="phone">服务电话：153992039939</view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      oilList: [
        { id: 1, name: "0#柴油", price: "6.66元/L" },
        { id: 2, name: "92#汽油", price: "7.22元/L" },
        { id: 3, name: "95#汽油", price: "8.33元/L" },
      ],
    };
  },

  created() {
    this.init();
  },

  mounted() {},
  methods: {
    async init(id) {},
  },
};
</script>

<style lang="scss">
.now_price_wraper {
  min-height: 100vh;
  box-sizing: border-box;
  background-color: #f8f8f8;
  img {
    width: 100vw;
    height: 250rpx;
  }
  .time {
    margin: 20rpx 40rpx;
    color: #666;
    font-size: 26rpx;
  }
  .main_wraper {
    width: 100%;
    box-sizing: border-box;
    .main {
      width: 100%;
      box-sizing: border-box;
      padding: 40rpx 30rpx;
      border-radius: 20rpx;
      background-color: #fff;
      .main_title {
        font-size: 34rpx;
        color: #000;
        font-weight: 600;
        margin-bottom: 30rpx;
      }
      .main_list {
        border-radius: 10rpx;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        .list_nav {
          background-color: #f1f3fe;
          height: 80rpx;
          display: flex;
          align-items: center;
          .val {
            flex: 1;
            text-align: center;
            font-size: 26rpx;
            color: #000;
            font-weight: 600;
          }
          .name {
            flex: 1;
            text-align: center;
            font-size: 26rpx;
            color: #000;
            font-weight: 600;
          }
        }
        .list_nav_container {
          background-color: #f9ffff;
          height: 80rpx;
          display: flex;
          justify-content: space-between;
          align-items: center;
          .val {
            flex: 1;
            text-align: center;
            font-size: 24rpx;
            color: #000;
          }
          .name {
            flex: 1;
            text-align: center;
            font-size: 24rpx;
            color: #b3c2ec;
          }
        }
      }
    }
  }
  .bottom {
    background-color: #fff;
    box-sizing: border-box;
    padding: 40rpx 30rpx;
    color: #666;
    font-size: 26rpx;
    margin-top: 40rpx;
    height: 400rpx;
    .address {
      margin-bottom: 10rpx;
    }
  }
}
</style>
